export default {
    name:'MontUI',
    desc:'基于 Vue 3，面向开发者的组件库',
    routes:[
        {
            path:'/',
            redirect:'/home',
            component:() => import('@/views/home/index.vue')
        },
        {
            path:'/home',
            name:'home',
            component:() => import('@/views/home/index.vue'),
            meta:{ title:'首页', keepAlive:true }
        },
        {
            path:'/doc',
            name:'doc',
            redirect:'/doc/installation',
            component:() => import('@/views/doc/index.vue'),
            meta:{ title:'文档', keepAlive:true },
            children:[
                {
                    path:'installation',
                    name:'installation',
                    meta:{ title:'安装', keepAlive:true },
                    component:() => import('@/views/doc/installation/index.vue')
                },
                {
                    path:'start',
                    name:'start',
                    meta:{ title:'开始使用', keepAlive:true },
                    component:() => import('@/views/doc/start/index.vue')
                }
            ]
        },
        {
            path:'/component',
            name:'component',
            redirect:'/component/button',
            component:() => import('@/views/component/index.vue'),
            meta:{ title:'组件', keepAlive:true },
            children:[
                {
                    path:'button',
                    name:'button',
                    meta:{ title:'Button 按钮', keepAlive:true, parent:'基础组件' },
                    component:() => import('@/views/component/button/index.vue')
                },
                {
                    path:'link',
                    name:'link',
                    meta:{ title:'Link 链接', keepAlive:true, parent:'基础组件' },
                    component:() => import('@/views/component/link/index.vue')
                },
                {
                    path:'icon',
                    name:'icon',
                    meta:{ title:'Icon 图标', keepAlive:true, parent:'基础组件' },
                    component:() => import('@/views/component/icon/index.vue')
                },
                {
                    path:'radio',
                    name:'radio',
                    meta:{ title:'Radio 单选框', keepAlive:true, parent:'表单组件' },
                    component:() => import('@/views/component/radio/index.vue')
                },
                {
                    path:'checkbox',
                    name:'checkbox',
                    meta:{ title:'CheckBox 复选框', keepAlive:true, parent:'表单组件' },
                    component:() => import('@/views/component/checkbox/index.vue')
                },
                {
                    path:'switch',
                    name:'switch',
                    meta:{ title:'Switch 开关', keepAlive:true, parent:'表单组件' },
                    component:() => import('@/views/component/switch/index.vue')
                },
                {
                    path:'input',
                    name:'input',
                    meta:{ title:'Input 输入框', keepAlive:true, parent:'表单组件' },
                    component:() => import('@/views/component/input/index.vue')
                },
                {
                    path:'toast',
                    name:'toast',
                    meta:{ title:'Toast 消息提示', keepAlive:true, parent:'反馈组件' },
                    component:() => import('@/views/component/toast/index.vue')
                },
                {
                    path:'scrollbar',
                    name:'scrollbar',
                    meta:{ title:'Scrollbar 滚动条', keepAlive:true, parent:'其他组件' },
                    component:() => import('@/views/component/scrollbar/index.vue')
                },
                {
                    path:'video',
                    name:'video',
                    meta:{ title:'Video 视频', keepAlive:true, parent:'高级组件' },
                    component:() => import('@/views/component/video/index.vue')
                }
            ]
        }
    ]
};